﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeBehind="MapFunction.aspx.cs" Inherits="Web.Pages.MapFunction" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderControl" runat="server">
    <%@ Register src="../UserControls/ucAccessControlToolbar.ascx" tagname="AccessControlToolbar" tagprefix="Toolbar" %>    
    <%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPopupControl" Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>    
    <%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPanel" Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
    <%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
    <%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
    <%@ Register Src="~/Modal/MapFunctionAddModal.ascx" TagPrefix="Toolbar" TagName="MapFunctionAddModal" %>
    <%@ Register Src="~/Modal/MapFunctionEditModal.ascx" TagPrefix="Toolbar" TagName="MapFunctionEditModal" %>


    <script type="text/javascript">
        // <![CDATA[

        // ]]> 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentControl" runat="server">
     <div>
        <div class="header">
            <Toolbar:AccessControlToolbar ID="AccessToolbar" runat="server" />
        </div>
        <div class="content">
            <table>
                <tr>
                    <td class="right" style="white-space: nowrap">
                        <span class="field-validation-error">*</span><asp:Label ID="lbApplication" runat="server" Text='<%$ Resources:Resource, Application %>'></asp:Label> :</td>
                    <td class="left">
                        <dx:ASPxComboBox ID="cbbApplication" runat="server" ValueType="System.String">
                        </dx:ASPxComboBox>
                    </td>
                </tr>
                <tr>
                    <td class="right" style="white-space: nowrap">
                        <span class="field-validation-error">*</span><asp:Label ID="lbGroupNo" runat="server" Text='<%$ Resources:Resource, GroupNo %>'></asp:Label> :</td>
                    <td class="left">
                        <dx:ASPxComboBox ID="cbbGroupNo" runat="server" ValueType="System.String">
                        </dx:ASPxComboBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="result">
            <dx:ASPxGridView ID="grvResult" ClientInstanceName="grvResult" runat="server" AutoGenerateColumns="False" Width="100%" >
                <Columns>
                    <dx:GridViewDataColumn  VisibleIndex="0">
                        <HeaderTemplate>
                            <dx:ASPxCheckBox ID="chk" runat="server"></dx:ASPxCheckBox>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxCheckBox ID="chk" runat="server"></dx:ASPxCheckBox>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataTextColumn Caption="No" FieldName="No" VisibleIndex="1">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbNo" runat="server" Text='<%$ Resources:Resource, No %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Application" VisibleIndex="2">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbApplication" runat="server" Text='<%$ Resources:Resource, Application %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Group" FieldName="Group" VisibleIndex="3">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbGroup" runat="server" Text='<%$ Resources:Resource, Group %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Function" FieldName="Function" VisibleIndex="4">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbFunction" runat="server" Text='<%$ Resources:Resource, Function %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                     <dx:GridViewDataTextColumn Caption="Access" FieldName="Access" VisibleIndex="5">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbAccess" runat="server" Text='<%$ Resources:Resource, Access %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxImage ID="imgAccess" runat="server"></dx:ASPxImage>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Add" FieldName="Add" VisibleIndex="6">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbAdd" runat="server" Text='<%$ Resources:Resource, Add %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxImage ID="imgAdd" runat="server"></dx:ASPxImage>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Edit" FieldName="Edit" VisibleIndex="6">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbEdit" runat="server" Text='<%$ Resources:Resource, Edit %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxImage ID="imgEdit" runat="server"></dx:ASPxImage>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Delete" FieldName="Delete" VisibleIndex="6">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbDelete" runat="server" Text='<%$ Resources:Resource, Delete %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxImage ID="imgDelete" runat="server"></dx:ASPxImage>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Search" FieldName="Search" VisibleIndex="6">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbSearch" runat="server" Text='<%$ Resources:Resource, Search %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxImage ID="imgSearch" runat="server"></dx:ASPxImage>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Report" FieldName="Report" VisibleIndex="6">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbRemark" runat="server" Text='<%$ Resources:Resource, Report %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxImage ID="imgReport" runat="server"></dx:ASPxImage>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataTextColumn>
                </Columns>
            </dx:ASPxGridView>
        </div>
        <div style="display: block;">
            <dx:ASPxPopupControl ID="pcModal"  CssClass="popup" runat="server" CloseAction="CloseButton" Modal="True"
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcModal"
                HeaderText="" AllowDragging="True" PopupAnimationType="None" EnableViewState="False">
                <ContentCollection>
                    <dx:PopupControlContentControl CssClass="popup" ID="PopupControlContentControl1" runat="server">
                    <dx:ASPxPanel ID="palModal"  CssClass="popup"  runat="server" DefaultButton="btOK">
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent1" runat="server">
                                <Toolbar:MapFunctionAddModal runat="server" ID="MapFunctionAddModal" />
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
                </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="pcModalEdit"  CssClass="popup" runat="server" CloseAction="CloseButton" Modal="True"
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcModalEdit"
                HeaderText="" AllowDragging="True" PopupAnimationType="None" EnableViewState="False">
                <ContentCollection>
                    <dx:PopupControlContentControl CssClass="popup" ID="PopupControlContentControl2" runat="server">
                    <dx:ASPxPanel ID="ASPxPanel1"  CssClass="popup"  runat="server" DefaultButton="btOK">
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent2" runat="server">
                                <Toolbar:MapFunctionEditModal runat="server" id="MapFunctionEditModal" />
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
                </dx:ASPxPopupControl>
        </div>
    </div>
</asp:Content>
